<div class="panel panel-default panel-intro">
    {:build_heading()}
    <div class="panel-body">
    <script id="customformtpl" type="text/html">
    <!--form表单必须添加form-commsearch这个类-->
        <form action="" class="form-commonsearch">
            <div class="searchBox">
                <div class="row">
                    <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                        <label for="livestreamerUser" class="control-label col-xs-4">{:__('Agent')}</label>
                        <div class="col-xs-8">
                            <!-- <input type="hidden" class="form-control operate" name="signAgentID-operate" data-name="signAgentID" value="=" readonly=""> -->
                            <select id="c-agent" data-rule="required" class="btnbox form-control select" name="signAgentID">
                                <option value>{:__('Please choose')}</option>
                                {foreach name="agentlist" item="vo"}
                                <option value="{$vo.username}">{$vo.username}</option>
                                {/foreach}
                            </select>
                        </div>
                    </div>
                    <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                        <label for="livestreamerUser" class="control-label col-xs-4">{:__('Spiderrobotuser')}</label>
                        <div class="col-xs-8">
                            <input type="hidden" class="form-control operate" name="spiderRobotUser-operate" data-name="spiderRobotUser" value="=" readonly="">
                            <select id="c-robot" data-rule="required" class="btnbox form-control select" name="spiderRobotUser">
                                <option value>{:__('Please select a broker first')}</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                        <label for="livestreamerUser" class="control-label col-xs-4">{:__('Region')}</label>
                        <div class="col-xs-8">
                            <input class="operate" type="hidden" name="region-operate" data-name="region" value="=" />
                            <input type="text" class="form-control" name="region" value="" placeholder="{:__('Region')}" id="region" autocomplete="off">
                        </div>
                    </div>
                    <!--
                    <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                        <label for="livestreamerUser" class="control-label col-xs-4">{:__('SpiderType')}</label>
                        <div class="col-xs-8">
                            <input class="operate" type="hidden" name="spiderType-operate" data-name="spiderType" value="=" />
                            <input type="text" class="form-control" name="spiderType" value="" placeholder="{:__('SpiderType')}" id="spiderType" autocomplete="off">
                        </div>
                    </div>
                    -->
                    <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                        
                        <label for="livestreamerUser" class="control-label col-xs-4">{:__('SpiderType')}</label>
                        <div class="col-xs-8">
                            <input type="hidden" class="form-control operate" name="agent-spiderType" data-name="spiderType" value="=" readonly="">
                            <select id="c-spiderType" data-rule="required" class="btnbox form-control select" name="spiderType">
                                    <option value="" >{:__('Whole')}</option>
                                    <option value="0" >{:__('SpiderByLiveroom')}</option>
                                    <option value="1" >{:__('SpiderByVideo')}</option>
                                    <option value="2" >{:__('SpiderByPC')}</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                        <label for="livestreamerUser" class="control-label col-xs-4">{:__('Checkstatus')}</label>
                        <div class="col-xs-8">
                            <input type="hidden" class="form-control operate" name="agent-checkStatus" data-name="checkStatus" value="=" readonly="">
                            <select id="c-checkStatus" data-rule="required" class="btnbox form-control select" name="checkStatus">
                                <option value="">{:__('Unlimited')}</option>
                                <option value="-1">{:__('Not verified')}</option>
                                <option value="0">{:__('Unavailable')}</option>
                                <option value="1">{:__('Verified (contractable)')}</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                        <label for="livestreamerUser" class="control-label col-xs-4">{:__('ManualGrade')}</label>
                        <div class="col-xs-8">
                            <input type="hidden" class="form-control operate" name="agent-grade" data-name="grade" value="=" readonly="">
                            <select id="c-grade" data-rule="required" class="btnbox form-control select" name="grade">
                                <option value="" >{:__('Whole')}</option>
                                <option value="-1" >{:__('GradeUnRated')}</option>
                                <option value="0" >{:__('GradeAbandon')}</option>
                                <option value="1" >{:__('GradeQualified')}</option>
                                <option value="2" >{:__('GradeExcellent')}</option>
                            </select>
                        </div>
                    </div>

                   <!--
                    <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                        <label for="livestreamerUser" class="control-label col-xs-4">{:__('SpiderTime')}</label>
                        <div class="col-xs-8">
                            <input class="operate" type="hidden" name="spiderTime-operate" data-name="spiderTime" value="RANGE" />
                            <input type="text" class="form-control datetimerange" name="spiderTime" value="" placeholder="{:__('SpiderTime')}" id="spiderTime" autocomplete="off">
                        </div>
                    </div>
                    -->
                </div>
                <div class="row">    
                    <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                        <div class="col-xs-4">
                            <a href="javascript:;" class="btn btn-warning btn-artific {:$auth->check('livestreamer/index/artific')?'':'hide'}" title="{:__('Manual review')}" >{:__('Manual review')}</a>
                        </div>
                        <div class="col-xs-4">
                                <input type="submit" class="btn btn-success btn-block" value="{:__('Inquire')}"/>
                        </div>
                        <div class="col-xs-4">
                            <a href="javascript:;" class="btn btn-primary btn-manual {:$auth->check('livestreamer/index/manual')?'':'hide'}" title="{:__('Add manually')}" >{:__('Add')}</a>
                        </div>
                    </div>
                </div>

            </div>
        </form>
    </script>
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
                        <!-- <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('livestreamer/index/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
                        <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('livestreamer/index/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
                        <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('livestreamer/index/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> -->


                        <!-- <div class="dropdown btn-group {:$auth->check('livestreamer/index/multi')?'':'hide'}">
                            <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>
                            <ul class="dropdown-menu text-left" role="menu">
                                <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
                                <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
                            </ul>
                        </div> -->
                        <!-- <a href="javascript:;" class="btn btn-warning btn-artific {:$auth->check('livestreamer/index/artific')?'':'hide'}" title="{:__('人工复核')}" >人工复核</a>

                        <a href="javascript:;" class="btn btn-primary btn-manual {:$auth->check('livestreamer/index/manual')?'':'hide'}" title="{:__('手工添加')}" >手工添加</a> -->

                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           data-operate-edit="{:$auth->check('livestreamer/index/edit')}"
                           data-operate-del="{:$auth->check('livestreamer/index/del')}"
                           width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>
